package org.amicofragile.hello

class Greetings (defaultTarget: String) {
	def this() = this("World")
	
	def sayHello () : String =  {
		sayHello(defaultTarget)
	}
	
	def sayHello (target: String) : String =  {
		"Hello, " + target + "!"
	}
	
	def defaultTarget() : String = defaultTarget
}